<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
\think\Route::get("video/type/:type",
    "video/index/type",
    ['complete_match' => true],["id" =>"\d+"]
);

\think\Route::get("video/search",
    "video/index/search",
    ['complete_match' => true]
);

\think\Route::get("video/detail/:id",
    "video/index/detail",
    ['complete_match' => true],["id" =>"\d+"]
);

\think\Route::get("play/group/:video_id",
    "play/index/groupById",
    ['complete_match' => true],["video_id" =>"\d+"]
);

\think\Route::get("detail",
    "index/index/detail",
    ['complete_match' => true]
);


/**
return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],

];
 **/
